package com.dyh.quickdemo.framework.conf;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*
@Author=Joey Wheeler
@Date=2020/10/20 10:46
*/
@Configuration
@Slf4j
public class JosConf {

    @Bean
    @ConditionalOnProperty("mq.outlog.jos.enableConsumer")
    Conf conf(){
        log.info("build conf");
        return new Conf();
    }

    @Setter@Getter
    public class Conf{
        String name;
    }
}
